package cn.itcast.service;

import cn.itcast.domain.Student;
import cn.itcast.domain.Teacher;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

public interface TeacherService {

    // 查询所有账户
    public List<Teacher> findAll();

    // 根据用户名和密码查询用户
    public Teacher findByStuAndPas(@Param("username") String username,
                                   @Param("password") String password);


    public List<Student> findByAll(@Param("username") String username);
}
